]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/tray-manager: Allow to unmanage screen
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Mar 2020 22:26:15 +0000 (23:26 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 6 Mar 2020 18:45:21 +0000 (18:45 +0000)
commite6d458195969aa054ef688d9095cfbfb3275e2fc
treea6a264b3ccddc0b0ac30cc12581b02495fbddae2
parent07bbcb1b4805510b3dc7ab4df507ae878407b762
shell/tray-manager: Allow to unmanage screen

Since support for legacy status icons is implemented by extensions
nowadays, they need to undo the call to manage_screen() when they
are disabled.

Right now that means bypassing garbage collection with an explicit
call to run_dispose() on the Shell.TrayManager. That works, but is
rather ugly.

An explicit unmanage_screen() method is a nicer option, and will be
useful to us as well to deal with X11 going away (once Xwayland
crashes don't bring down the entire session).

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2308
src/shell-tray-manager.c
src/shell-tray-manager.h